
<!DOCTYPE HTML>
<html>
    <head>
        <title>Youniversity</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
        
        <link rel="stylesheet" href="style/style.css"/>
        <script src="js/lib/cordova-1.7.0.js"></script>
        <script src="js/lib/iscroll.js"></script>

        <script type="text/javascript">

            var scrollableframe;
            function loaded() {
                scrollableframe = new iScroll('scrollableframe',
                                      { useTransition:false,
                                        checkDOMChanges: true,
                                        hideScrollbar: true,
                                        fixedScrollbar:true,
                                        bounceLock: true,
                                        onBeforeScrollStart: function (e) {
                                            var target = e.target;
                                            while (target.nodeType != 1) target = target.parentNode;

                                            if (target.tagName != 'SELECT' && target.tagName != 'OPTION' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA' && target.tagName != 'BUTTON')
                                                e.preventDefault();
                                        } }
                                    );

                $('.button')
                    .on('touchstart', function () {
                        $(this).addClass('fake-active');
                    })
                    .on('touchend', function() {
                        $(this).removeClass('fake-active');
                    })
                    .on('touchcancel', function() {
                        $(this).removeClass('fake-active');
                    });

                var allSelects = $('button');
                allSelects.each(function(index, item) {
                                  item.addEventListener('touchstart', function(e) { /*e.stopPropagation();*/ $(this).addClass("fake-active"); }, false);
                                  item.addEventListener('touchend', function(e) { $(this).removeClass("fake-active"); }, false);
                                  item.addEventListener('touchcancel', function(e) { $(this).removeClass("fake-active"); }, false);
                                });
            }

            document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
            document.addEventListener('DOMContentLoaded', loaded, false);

        </script>

    </head>
    <body class="page">
        <nav>
            <ul>
                <li><a href="explore.html"><img src="resources/img/explore.png"></a></li>
                <li><a href="plan.html"><img src="resources/img/plan.png"></a></li>
                <li><a href="personal.html"><img src="resources/img/personal.png"></a></li>
                <li><a href="events.html"><img src="resources/img/events.png"></a></li>
                <li><a href="updates.html"><img src="resources/img/updates.png"></a></li>
            </ul>
        </nav>
        <header>Economia</header>

        <div id="scrollableframe">
            <div class="scroller">
                <form>
                    <div class="frame centeredframe">
                        <ul class="rating-container">
                            <li>
                                <label>Interesse: </label>
                                <div class="rating">
                                    <input type="radio" id="interessestar5" name="interesse" value="5" /><label for="interessestar5"></label>
                                    <input type="radio" id="interessestar4" name="interesse" value="4" /><label for="interessestar4"></label>
                                    <input type="radio" id="interessestar3" name="interesse" value="3" /><label for="interessestar3"></label>
                                    <input type="radio" id="interessestar2" name="interesse" value="2" /><label for="interessestar2"></label>
                                    <input type="radio" id="interessestar1" name="interesse" value="1" /><label for="interessestar1"></label>
                                </div>
                            </li>
                            <li>
                                <label>Utilita': </label>
                                <div class="rating">
                                    <input type="radio" id="utilitastar5" name="utilita" value="5" /><label for="utilitastar5"></label>
                                    <input type="radio" id="utilitastar4" name="utilita" value="4" /><label for="utilitastar4"></label>
                                    <input type="radio" id="utilitastar3" name="utilita" value="3" /><label for="utilitastar3"></label>
                                    <input type="radio" id="utilitastar2" name="utilita" value="2" /><label for="utilitastar2"></label>
                                    <input type="radio" id="utilitastar1" name="utilita" value="1" /><label for="utilitastar1"></label>
                                </div>
                            </li>
                            <li>
                                <label>Facilita': </label>
                                <div class="rating">
                                    <input type="radio" id="facilitastar5" name="facilita" value="5" /><label for="facilitastar5"></label>
                                    <input type="radio" id="facilitastar4" name="facilita" value="4" /><label for="facilitastar4"></label>
                                    <input type="radio" id="facilitastar3" name="facilita" value="3" /><label for="facilitastar3"></label>
                                    <input type="radio" id="facilitastar2" name="facilita" value="2" /><label for="facilitastar2"></label>
                                    <input type="radio" id="facilitastar1" name="facilita" value="1" /><label for="facilitastar1"></label>
                                </div>
                            </li>
                            <li>
                                <label>Docente: </label>
                                <div class="rating">
                                    <input type="radio" id="docentestar5" name="docente" value="5" /><label for="docentestar5"></label>
                                    <input type="radio" id="docentestar4" name="docente" value="4" /><label for="docentestar4"></label>
                                    <input type="radio" id="docentestar3" name="docente" value="3" /><label for="docentestar3"></label>
                                    <input type="radio" id="docentestar2" name="docente" value="2" /><label for="docentestar2"></label>
                                    <input type="radio" id="docentestar1" name="docente" value="1" /><label for="docentestar1"></label>
                                </div>
                            </li>
                            <li>
                                <label>Materiale: </label>
                                <div class="rating">
                                    <input type="radio" id="materialestar5" name="materiale" value="5" /><label for="materialestar5"></label>
                                    <input type="radio" id="materialestar4" name="materiale" value="4" /><label for="materialestar4"></label>
                                    <input type="radio" id="materialestar3" name="materiale" value="3" /><label for="materialestar3"></label>
                                    <input type="radio" id="materialestar2" name="materiale" value="2" /><label for="materialestar2"></label>
                                    <input type="radio" id="materialestar1" name="materiale" value="1" /><label for="materialestar1"></label>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div class="centercontent">
                        <button type="button">
                            <span class="icon tick"></span>
                            <span class="label">Vota</span>
                        </button>
                    </div>
                </form>


            </div>
        </div>

        <script src="js/lib/zepto.min.js"></script>
        <script src="js/ynv.js"></script>
    </body>
</html>